// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-04-03',
  modules: ['@element-plus/nuxt', '@pinia/nuxt'],
  typescript: {
    typeCheck: false,
    strict: false
  },
  devtools: {
    enabled: true
  },
  css: [
    "~/assets/style/global.css",
    "~/assets/icon_font/iconfont.css",
  ],
  vite: {
    server: {
      proxy: {
        '/_api': {
          target: 'http://localhost:8081',
          changeOrigin: true,
          prependPath: true,
        },
      },
    }
  },
  // plugins: [
  //   {
  //     src: '~/plugins/element-plus.client.js',
  //     mode: 'client',
  //     ssr: false
  //   },
  // ]
})
// npm config set registry https://registry.npmmirror.com
// npm install pinia @pinia/nuxt
// npm install -D @element-plus/nuxt
// npm install axios
// npm install sass --save-dev

// npm install vue-image-crop-upload import myUpload from 'vue-image-crop-upload';
// npm install vue-wordcloud import wordcloud from 'vue-wordcloud'
// npm install --save nprogress 进度条
